Skip to content

unified: Enhance toString of members - #22795

Merged
asgerf merged 3 commits into
github:mainfrom
asgerf:unified/member-tostring
Oct 12, 2026
Merged

asgerf merged 3 commits into
github:mainfrom
asgerf:unified/member-tostring

Conversation

@asgerf

@asgerf asgerf commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Includes qualified names and fallback names for anonymous members

@asgerf
asgerf force-pushed the unified/member-tostring branch from 54321f1 to 154f990 Compare October 9, 2026 12:15
@asgerf asgerf added the no-change-note-required This PR does not need a change note label Oct 9, 2026
@asgerf
asgerf marked this pull request as ready for review October 9, 2026 12:31
@asgerf
asgerf requested a review from a team as a code owner October 9, 2026 12:31
Copilot AI balanced review requested due to automatic review settings October 9, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Members declared in extensions are incorrectly qualified as belonging to an anonymous class.

1 open finding
What changed in this PR

Enhances Unified AST member string representations with qualified and fallback names.

Changes:

  • Adds member fallback and qualified-name logic.
  • Updates declaration toString() methods.
  • Regenerates affected Swift test expectations.
File Description
FacadeAst.qll Implements qualified member display names.
AstExtra.qll Enables overlay-local behavior.
basicblock-slices.expected Updates control-flow expectations.
constructors/​test.expected Updates constructor expectations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +199 to +201
exists(ClassLikeDeclaration cls |
this = cls.getAMember() and
result = cls.getQualifiedName() + "." + this.getNameOrFallback()
hvitved
hvitved previously approved these changes Oct 9, 2026
@asgerf
asgerf force-pushed the unified/member-tostring branch from 8c9c9e1 to f66896b Compare October 12, 2026 08:16

@aschackmull aschackmull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great improvement!

@asgerf
asgerf merged commit 8834de5 into github:main Oct 12, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants